package edu.scau.mis.pos.mapper;

import edu.scau.mis.pos.domain.Promotion;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface PromotionMapper {



    List<Promotion> selectList();

    List<Promotion> selectByPage(Promotion promotion);
    int insert(Promotion promotion);


    int update(Promotion promotion);

    @Delete("DELETE FROM clo_promotion WHERE promotion_id = #{promotionId}")
    int deletePromotion(String promotionId);

    List<Promotion> selectByTypeAndStatus(String type);

    Promotion selectPromotionById(String id);


}
